package com.qfedu.cardlikelazy.controller;

import com.qfedu.cardlikelazy.domain.User;
import com.qfedu.cardlikelazy.response.R;
import com.qfedu.cardlikelazy.response.Response;
import com.qfedu.cardlikelazy.service.UserService;
import io.swagger.annotations.Api;

import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

@RestController
@RequestMapping("user")
@Api(value = "用户操作" , tags = "用户操作")
public class UserController {

    @Resource
    private UserService service;


    @GetMapping("login")
    public R login(String username , String password){
        return service.login(password,username);
    }



}
